package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import com.hmall.api.dto.PayOrderDTO;
import com.hmall.api.fallback.PayClientFallback;
import com.hmall.api.fallback.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "pay-service", fallbackFactory = PayClientFallback.class, configuration = DefaultFeignConfig.class)
public interface PayClient {


    @GetMapping("/pay-orders/biz/{id}")
    PayOrderDTO queryByBizOrderNo(@PathVariable("id") Long orderId);
}
